package com.jason.kotlin.meta.architecture2.api

import com.jason.kotlin.meta.architecture2.model.*
import retrofit2.http.GET
import retrofit2.http.Path

/**
 * 首页-相关Api接口
 */
interface HomeService {

    @GET("/banner/json")
    suspend fun getBanners() : WanApiResponse<List<BannerBean>>

    @GET("/article/list/{page}/json")
    suspend fun getArticles(@Path("page") page:Int) : WanApiResponse<WanApiPageResponse<ArticleBean>>

    @GET("/friend/json")
    suspend fun getFriendSites() : WanApiResponse<List<FriendSiteBean>>

    @GET("/hotkey/json")
    suspend fun getHotKey() : WanApiResponse<List<HotKeyBean>>

    @GET("/article/top/json")
    suspend fun getTopArticles() : WanApiResponse<List<ArticleBean>>
}